//import axios from 'axios';
import request from '@/utils/request';

export const getItemDetails = (productId) => {
  return request.get(`/item/${productId}`);
};

export function addItemToCart(itemId) {
  return request.post(`/cart/add/${itemId}?quantity=1`);
}